{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Capture elapsed time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime\n",
    "import numpy as np\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2\n",
       "0 2024-05-17 00:00:00 2024-05-31\n",
       "1 2024-05-17 01:00:00 2024-06-30\n",
       "2 2024-05-17 02:00:00 2024-07-31\n",
       "3 2024-05-17 03:00:00 2024-08-31\n",
       "4 2024-05-17 04:00:00 2024-09-30"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's create a toy dataframe with some date variables\n",
    "\n",
    "date = \"2024-05-17\"\n",
    "\n",
    "rng_hr = pd.date_range(date, periods=20, freq=\"h\")\n",
    "rng_month = pd.date_range(date, periods=20, freq=\"ME\")\n",
    "\n",
    "df = pd.DataFrame(\n",
    "    {\"date1\": rng_hr, \"date2\": rng_month})  \n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "      <th>elapsed_days</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "      <td>14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "      <td>43</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "      <td>74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "      <td>105</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "      <td>135</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2  elapsed_days\n",
       "0 2024-05-17 00:00:00 2024-05-31            14\n",
       "1 2024-05-17 01:00:00 2024-06-30            43\n",
       "2 2024-05-17 02:00:00 2024-07-31            74\n",
       "3 2024-05-17 03:00:00 2024-08-31           105\n",
       "4 2024-05-17 04:00:00 2024-09-30           135"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's capture the difference in days between the 2 variables\n",
    "\n",
    "df[\"elapsed_days\"] = (df[\"date2\"] - df[\"date1\"]).dt.days\n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "      <th>elapsed_days</th>\n",
       "      <th>weeks_passed</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "      <td>14</td>\n",
       "      <td>2.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "      <td>43</td>\n",
       "      <td>6.279762</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "      <td>74</td>\n",
       "      <td>10.702381</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "      <td>105</td>\n",
       "      <td>15.125000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "      <td>135</td>\n",
       "      <td>19.404762</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2  elapsed_days  weeks_passed\n",
       "0 2024-05-17 00:00:00 2024-05-31            14      2.000000\n",
       "1 2024-05-17 01:00:00 2024-06-30            43      6.279762\n",
       "2 2024-05-17 02:00:00 2024-07-31            74     10.702381\n",
       "3 2024-05-17 03:00:00 2024-08-31           105     15.125000\n",
       "4 2024-05-17 04:00:00 2024-09-30           135     19.404762"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's capture the difference in weeks between the 2 variables\n",
    "\n",
    "df[\"weeks_passed\"] = (df[\"date2\"] - df[\"date1\"]) / np.timedelta64(1, \"W\")\n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "      <th>elapsed_days</th>\n",
       "      <th>weeks_passed</th>\n",
       "      <th>diff_seconds</th>\n",
       "      <th>diff_minutes</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "      <td>14</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>1209600.0</td>\n",
       "      <td>20160.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "      <td>43</td>\n",
       "      <td>6.279762</td>\n",
       "      <td>3798000.0</td>\n",
       "      <td>63300.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "      <td>74</td>\n",
       "      <td>10.702381</td>\n",
       "      <td>6472800.0</td>\n",
       "      <td>107880.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "      <td>105</td>\n",
       "      <td>15.125000</td>\n",
       "      <td>9147600.0</td>\n",
       "      <td>152460.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "      <td>135</td>\n",
       "      <td>19.404762</td>\n",
       "      <td>11736000.0</td>\n",
       "      <td>195600.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2  elapsed_days  weeks_passed  diff_seconds  \\\n",
       "0 2024-05-17 00:00:00 2024-05-31            14      2.000000     1209600.0   \n",
       "1 2024-05-17 01:00:00 2024-06-30            43      6.279762     3798000.0   \n",
       "2 2024-05-17 02:00:00 2024-07-31            74     10.702381     6472800.0   \n",
       "3 2024-05-17 03:00:00 2024-08-31           105     15.125000     9147600.0   \n",
       "4 2024-05-17 04:00:00 2024-09-30           135     19.404762    11736000.0   \n",
       "\n",
       "   diff_minutes  \n",
       "0       20160.0  \n",
       "1       63300.0  \n",
       "2      107880.0  \n",
       "3      152460.0  \n",
       "4      195600.0  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# calculate difference in seconds and minutes\n",
    "\n",
    "df[\"diff_seconds\"] = (df[\"date2\"] - df[\"date1\"]) / np.timedelta64(1, \"s\")\n",
    "df[\"diff_minutes\"] = (df[\"date2\"] - df[\"date1\"]) / np.timedelta64(1, \"m\")\n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "      <th>elapsed_days</th>\n",
       "      <th>weeks_passed</th>\n",
       "      <th>diff_seconds</th>\n",
       "      <th>diff_minutes</th>\n",
       "      <th>to_today</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "      <td>14</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>1209600.0</td>\n",
       "      <td>20160.0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "      <td>43</td>\n",
       "      <td>6.279762</td>\n",
       "      <td>3798000.0</td>\n",
       "      <td>63300.0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "      <td>74</td>\n",
       "      <td>10.702381</td>\n",
       "      <td>6472800.0</td>\n",
       "      <td>107880.0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "      <td>105</td>\n",
       "      <td>15.125000</td>\n",
       "      <td>9147600.0</td>\n",
       "      <td>152460.0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "      <td>135</td>\n",
       "      <td>19.404762</td>\n",
       "      <td>11736000.0</td>\n",
       "      <td>195600.0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2  elapsed_days  weeks_passed  diff_seconds  \\\n",
       "0 2024-05-17 00:00:00 2024-05-31            14      2.000000     1209600.0   \n",
       "1 2024-05-17 01:00:00 2024-06-30            43      6.279762     3798000.0   \n",
       "2 2024-05-17 02:00:00 2024-07-31            74     10.702381     6472800.0   \n",
       "3 2024-05-17 03:00:00 2024-08-31           105     15.125000     9147600.0   \n",
       "4 2024-05-17 04:00:00 2024-09-30           135     19.404762    11736000.0   \n",
       "\n",
       "   diff_minutes  to_today  \n",
       "0       20160.0         0  \n",
       "1       63300.0         0  \n",
       "2      107880.0         0  \n",
       "3      152460.0         0  \n",
       "4      195600.0         0  "
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# calculate difference to today\n",
    "\n",
    "df[\"to_today\"] = (datetime.datetime.today() - df[\"date1\"]).dt.days\n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "from feature_engine.datetime import DatetimeSubtraction"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2\n",
       "0 2024-05-17 00:00:00 2024-05-31\n",
       "1 2024-05-17 01:00:00 2024-06-30\n",
       "2 2024-05-17 02:00:00 2024-07-31\n",
       "3 2024-05-17 03:00:00 2024-08-31\n",
       "4 2024-05-17 04:00:00 2024-09-30"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "date = \"2024-05-17\"\n",
    "\n",
    "rng_hr = pd.date_range(date, periods=20, freq=\"h\")\n",
    "rng_month = pd.date_range(date, periods=20, freq=\"ME\")\n",
    "\n",
    "df = pd.DataFrame(\n",
    "    {\"date1\": rng_hr, \"date2\": rng_month})  \n",
    "\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date1</th>\n",
       "      <th>date2</th>\n",
       "      <th>date2_sub_date1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2024-05-17 00:00:00</td>\n",
       "      <td>2024-05-31</td>\n",
       "      <td>14.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2024-05-17 01:00:00</td>\n",
       "      <td>2024-06-30</td>\n",
       "      <td>43.958333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2024-05-17 02:00:00</td>\n",
       "      <td>2024-07-31</td>\n",
       "      <td>74.916667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2024-05-17 03:00:00</td>\n",
       "      <td>2024-08-31</td>\n",
       "      <td>105.875000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2024-05-17 04:00:00</td>\n",
       "      <td>2024-09-30</td>\n",
       "      <td>135.833333</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                date1      date2  date2_sub_date1\n",
       "0 2024-05-17 00:00:00 2024-05-31        14.000000\n",
       "1 2024-05-17 01:00:00 2024-06-30        43.958333\n",
       "2 2024-05-17 02:00:00 2024-07-31        74.916667\n",
       "3 2024-05-17 03:00:00 2024-08-31       105.875000\n",
       "4 2024-05-17 04:00:00 2024-09-30       135.833333"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ds = DatetimeSubtraction(\n",
    "    variables=\"date2\",\n",
    "    reference=\"date1\",\n",
    "    output_unit=\"D\",\n",
    ")\n",
    "\n",
    "dft = ds.fit_transform(df)\n",
    "\n",
    "dft.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "fsml",
   "language": "python",
   "name": "fsml"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.5"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": "block",
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
